package com.codingchili.logging.model;

import com.codingchili.core.listener.Request;
import com.codingchili.core.listener.RequestWrapper;

import static com.codingchili.common.Strings.ID_REALM;

/**
 * @author Robin Duda
 */
public class StatisticsRequest implements RequestWrapper {
    private final Request request;

    public StatisticsRequest(Request request) {
        this.request = request;
    }

    public String realm() {
        return request.data().getString(ID_REALM);
    }

    @Override
    public Request request() {
        return request;
    }
}
